import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './js/flexible'
import {
    Button,
    Col,
    Row,
    Search,
    NavBar,
    Tab,
    Tabs,
    Tabbar,
    TabbarItem,
    Lazyload,
    Swipe,
    SwipeItem,
    Grid,
    GridItem,
    Sidebar,
    SidebarItem,
    Icon,
    Stepper,
    Checkbox,
    CheckboxGroup,
    Toast,
    Dialog
} from 'vant';

Vue.config.productionTip = false

Vue.use(store).use(router)
    .use(Button).use(Col).use(Row).use(Search)
    .use(NavBar).use(Tab).use(Tabs).use(Tabbar)
    .use(TabbarItem).use(Lazyload).use(Swipe)
    .use(SwipeItem).use(Grid).use(GridItem)
    .use(Sidebar).use(SidebarItem).use(Icon)
    .use(Stepper).use(Checkbox).use(CheckboxGroup)
    .use(Toast).use(Dialog)

Vue.prototype.$bus = new Vue()

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')